package com.ukao.pad.bean;

import android.os.Parcel;

import com.ukao.pad.utils.CheckUtils;

/**
 * Created by ukaodev on 2017/7/29.
 */

public class ProductBatchInBean extends  BaseListBean<ProductBatchInBean>    {



        /**
         * orderNo : 571457269745
         * orderId : 1
         * userPhone : 15103173399
         * orderProType : 1
         * serviceName : 染烫
         * userName : 孙岩
         * userId : 1
         * productName : 上色
         * scanCode : 939194987320
         * inId : 21
         * createTime : 1499759557000
         * subtotal : 10500
         * statusText : 未分拣
         * id : 20
         * orderProId : 85
         * proStatusText : null
         * status : 0
         */
        private  String  storeName;
        private  String  outId;
        private  boolean check;
        private String orderNo;
        private String orderId;
        private String userPhone;
        private int orderProType;
        private String serviceName;
        private String userName;
        private int userId;
        private String productName;
        private String scanCode;
        private  String  bindCode;
        private String inId;
        private long createTime;
        private int subtotal;
        private String statusText;
        private String id;
        private String orderProId;
        private String proStatusText;
        private int status;
        private   boolean  isFinish;
        private   boolean  isOrder;
    private   int  isFactoryStatus;
    private  String  factoryStatusText;
    private  int factoryStatus;


    public String getBindCode() {
        return CheckUtils.isEmptyString(bindCode);
    }

    public boolean isFinish() {
        return isFinish;
    }

    public void setFinish(boolean finish) {
        isFinish = finish;
    }

    public void setIsFactoryStatus(int isFactoryStatus) {
        this.isFactoryStatus = isFactoryStatus;
    }

    public boolean isOrder() {
        return isOrder;
    }

    public void setOrder(boolean order) {
        isOrder = order;
    }

    public void setFactoryStatusText(String factoryStatusText) {
        this.factoryStatusText = factoryStatusText;
    }

    public void setFactoryStatus(int factoryStatus) {
        this.factoryStatus = factoryStatus;
    }

    public String getFactoryStatusText() {
        return factoryStatusText;
    }

    public int getFactoryStatus() {
        return factoryStatus;
    }

    public String getStoreName() {
        return storeName;
    }

    public String getOutId() {
        return outId;
    }

    public boolean isCheck() {
        return check;
    }

    public void setCheck(boolean check) {
        this.check = check;
    }

    public String getOrderNo() {
            return orderNo;
        }

        public void setOrderNo(String orderNo) {
            this.orderNo = orderNo;
        }

        public String getOrderId() {
            return orderId;
        }

        public void setOrderId(String orderId) {
            this.orderId = orderId;
        }

        public String getUserPhone() {
            return userPhone;
        }

        public void setUserPhone(String userPhone) {
            this.userPhone = userPhone;
        }

        public int getOrderProType() {
            return orderProType;
        }

        public void setOrderProType(int orderProType) {
            this.orderProType = orderProType;
        }

        public String getServiceName() {
            return serviceName;
        }

        public void setServiceName(String serviceName) {
            this.serviceName = serviceName;
        }

        public String getUserName() {
            return userName;
        }

        public void setUserName(String userName) {
            this.userName = userName;
        }

        public int getUserId() {
            return userId;
        }

        public void setUserId(int userId) {
            this.userId = userId;
        }

        public String getProductName() {
            return productName;
        }

        public void setProductName(String productName) {
            this.productName = productName;
        }

        public String getScanCode() {
            return scanCode;
        }

        public void setScanCode(String scanCode) {
            this.scanCode = scanCode;
        }

        public String getInId() {
            return inId;
        }

        public void setInId(String inId) {
            this.inId = inId;
        }

        public long getCreateTime() {
            return createTime;
        }

        public void setCreateTime(long createTime) {
            this.createTime = createTime;
        }

        public int getSubtotal() {
            return subtotal;
        }

        public void setSubtotal(int subtotal) {
            this.subtotal = subtotal;
        }

        public String getStatusText() {
            return statusText;
        }

        public void setStatusText(String statusText) {
            this.statusText = statusText;
        }

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getOrderProId() {
            return orderProId;
        }

        public void setOrderProId(String orderProId) {
            this.orderProId = orderProId;
        }

        public String getProStatusText() {
            return proStatusText;
        }

        public void setProStatusText(String proStatusText) {
            this.proStatusText = proStatusText;
        }

        public int getStatus() {



            return status ;
        }

    public int getIsFactoryStatus() {
        return isFactoryStatus;
    }

    public void setStatus(int status) {
            this.status = status;
        }


    public ProductBatchInBean() {
    }


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        super.writeToParcel(dest, flags);
        dest.writeString(this.storeName);
        dest.writeString(this.outId);
        dest.writeByte(this.check ? (byte) 1 : (byte) 0);
        dest.writeString(this.orderNo);
        dest.writeString(this.orderId);
        dest.writeString(this.userPhone);
        dest.writeInt(this.orderProType);
        dest.writeString(this.serviceName);
        dest.writeString(this.userName);
        dest.writeInt(this.userId);
        dest.writeString(this.productName);
        dest.writeString(this.scanCode);
        dest.writeString(this.inId);
        dest.writeLong(this.createTime);
        dest.writeInt(this.subtotal);
        dest.writeString(this.statusText);
        dest.writeString(this.id);
        dest.writeString(this.orderProId);
        dest.writeString(this.proStatusText);
        dest.writeInt(this.status);
        dest.writeByte(this.isOrder ? (byte) 1 : (byte) 0);
        dest.writeInt(this.isFactoryStatus);
        dest.writeString(this.factoryStatusText);
        dest.writeInt(this.factoryStatus);
    }

    protected ProductBatchInBean(Parcel in) {
        super(in);
        this.storeName = in.readString();
        this.outId = in.readString();
        this.check = in.readByte() != 0;
        this.orderNo = in.readString();
        this.orderId = in.readString();
        this.userPhone = in.readString();
        this.orderProType = in.readInt();
        this.serviceName = in.readString();
        this.userName = in.readString();
        this.userId = in.readInt();
        this.productName = in.readString();
        this.scanCode = in.readString();
        this.inId = in.readString();
        this.createTime = in.readLong();
        this.subtotal = in.readInt();
        this.statusText = in.readString();
        this.id = in.readString();
        this.orderProId = in.readString();
        this.proStatusText = in.readString();
        this.status = in.readInt();
        this.isOrder = in.readByte() != 0;
        this.isFactoryStatus = in.readInt();
        this.factoryStatusText = in.readString();
        this.factoryStatus = in.readInt();
    }

    public static final Creator<ProductBatchInBean> CREATOR = new Creator<ProductBatchInBean>() {
        @Override
        public ProductBatchInBean createFromParcel(Parcel source) {
            return new ProductBatchInBean(source);
        }

        @Override
        public ProductBatchInBean[] newArray(int size) {
            return new ProductBatchInBean[size];
        }
    };
}
